function [ char ] = genatr( char )
%GENATRS generate attributes
%   IN:     character structure
%   OUT:    character structure with new atributes
%   This func use the standard generate methode:
%         - at first throw 3d6 to all atributes
%         - then if some atr is 3, throw again once

% throws
M = kk([6*ones(1,6);3*ones(1,6)]);

% if some atr is 3, throw again
for i = 1 : length(M)
    if M(i) == 3
        M(i) = sum(k(6,3,0))
    end
end

% set atributes
char.atr.str = [M(1) M(1)]; 
char.atr.dex = [M(2) M(2)];
char.atr.con = [M(3) M(3)];
char.atr.int = [M(4) M(4)];
char.atr.wis = [M(5) M(5)];
char.atr.cha = [M(6) M(6)];